package com.ruoyi.auth.config;

import com.ruoyi.common.core.utils.StringUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "wx-app")
public class WxAppConfig {
    /** AppId **/
    private String AppId;

    /** AppSecret **/
    private String AppSecret;

    public String getAppId() {
        if(StringUtils.isEmpty( AppId)){
            return  "wx2670131776e09df2";
        }
        return AppId;
    }

    public void setAppId(String appId) {
        AppId = appId;
    }

    public String getAppSecret() {
        if(StringUtils.isEmpty( AppSecret)){
            return  "0036c66ca7db34b4e3fa87cea757c7f6";
        }

        return AppSecret;
    }

    public void setAppSecret(String appSecret) {
        AppSecret = appSecret;
    }
}
